Skip to main content

All Questions

0votes
0answers
11views

import export list from two different SharePoint Online sites using PnP Powershell

I'm looking for a way to import a sharepoint list of a sharepoint site and export it into another destination. I looked at this Powershell PnP commands I don't want the CopyList as i need to have the ...
naijacoder's user avatar
0votes
0answers
32views

How do I use PnP to move large amounts of files without breaking sharing links and permissions?

I'm trying to find an archiving solution for my company that's easier than using the GUI and scrolling through large amounts of files and folders and manually using the Move To button. I have written ...
user124837's user avatar
2votes
1answer
222views

How do I find out what kind of access a user has to a SharePoint Online site using PNP PowerShell?

In Powershell, after running the Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/xyz -UseWebLogin and Get-PnPUser -WithRightsAssigned commands, I can get the list of all users that have ...
Lorren112's user avatar
0votes
1answer
86views

Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal

We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App ...
user3436773's user avatar
1vote
0answers
68views

remove Everyone and Everyone Except External Users from all places in an SPO Sites

Requirement: One of our Clients is working on correcting permissions on there tenant and thus needs to remove "Everyone" and "Everyone except external users" from identified places ...
SiD's user avatar
  • 93
2votes
2answers
307views

New site title is not propagating to group or team name if renamed programmatically

When I programmatically change the title of a group-based site using PowerShell, the site gets the new name, but the associated Microsoft 365 group does not. Furthermore, when you log in to the site, ...
Janet's user avatar
0votes
0answers
34views

SetPnPView not working with aggregation

I want to update the view of SharePoint document library to display total no of items. I can manually go to each view and update but I have 22 libraries and 5 views in each library. There are total ...
Umang Soni's user avatar
0votes
0answers
488views

Error : The remote server returned an error : (404) Not found when using Copy-PnPFolder powershell

I have been using the Copy-PnPFolder to copy files between sharepoint sites. But just suddenly i started receiding this error : The remote server returned an error : (404) Not found This is how i ...
naijacoder's user avatar
0votes
1answer
374views

Can I use the Copy-PnPFolder to copy local files to SharePoint?

I'm trying to use the command below to copy local files to SharePoint. Copy-PnPFolder -LocalPath "C:\Projects\BS\Banner.zip" -TargetUrl "https://Demo.sharepoint.com/sites/Demo/Documents&...
naijacoder's user avatar
0votes
1answer
2kviews

PnP Powershell Connection with ClientId and ClientSecre return error "The app principal does not exist"

I'm trying to run my Powershell PnP script using ClientId and ClientSecret instead of UseWebLogin. I already created an Azure Application ID using this tutorial (but skipping the certificate part for ...
Dylan666's user avatar
0votes
2answers
588views

Script to empty 1st & 2nd stage recycling bins from all sites in SharePoint

I'm looking for a way to automate emptying the recycling bins (1st & 2nd stage) from all sites in our SharePoint (Online) collection. From searching, I've found solutions that no longer work (...
FotS's user avatar
1vote
1answer
362views

Restrict PnPSearchQuery to just site and subsites not all tenant sites

I had a request from some co-workers to build them a PowerShell to search sites for instances of text that is not accessible so they can replace it. Specifically NA or N/A. I have a PowerShell working ...
OMGDrAcula's user avatar
0votes
0answers
292views

PnP PowerShell - Update list fields from CSV file

I have the following code and it has been working. Now our company merged and my computer is with the new company domain. New company don't have access to our SharePoint and it seems like it also want ...
maria's user avatar
1vote
2answers
1kviews

How can I use PnP Powershell to enable custom script in a subsite?

My problem is enabling custom script with DenyAddAndCustomizePages. A two-line script can describe my problem. Background: I was using Set-SPOSite to enable it like this: Set-SPOSite $SiteURL -...
IshRashad's user avatar
0votes
1answer
43views

SharePoint online default templates

I created 50 pages using the SharePoint online template called Blank. This has a header / title webpart at the top which we do not want. Does anyone know of a way to remove this webpart from all the ...
Scots_nerd's user avatar

153050per page
close